package cn.itcast.zt.java8.annotation;

import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * create by zhangtian105 on 2021/7/14
 */
@Data
@Builder
public class Student implements Serializable {
    private static final long serialVersionUID = -2422555697250719835L;
    @NotNull(message = "ID不能为空")
    private Long id ;
    @NotBlank(message = "学生姓名不能为空")
    private String name ;
    @NotBlank(message = "学生住址不能为空")
    private String address ;
}
